﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AISFMIOperator
{
    public partial class AddCityForm : Form
    {
        private AISFMIOperator.Region region;

        public AddCityForm(AISFMIOperator.Region region)
        {
            InitializeComponent();
            this.region = region;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            City c = new City();
            c.CityID = 0;
            c.CityName = textBox1.Text.Trim();
            c.Region = this.region;

            c.Save();

            this.Close();
        }
    }
}
